package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 订购学生调到其它学生记录
 * </p>
 *
 * @author hpiggy
 * @since 2025-02-14
 */
@TableName("book_student_adjust")
@ApiModel(value = "BookStudentAdjust对象", description = "订购学生调到其它学生记录")
public class BookStudentAdjust implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("被调整的订购id")
    private Long bookStudentId;

    private Long orderId;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("学生id")
    private Long studentId;

    @ApiModelProperty("科目id")
    private Long subjectsId;

    @ApiModelProperty("班型id")
    private Long classTypeId;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("订购时，学生所属的带班教师id")
    private Long teacherId;

    @ApiModelProperty("订购时学生所属班级id")
    private Long gradeId;

    @ApiModelProperty("1精品课")
    private Integer lessonType;

    @ApiModelProperty("1订购中，2已下单，3校区已领取，4发放到教师，5发放到学生")
    private Integer status;

    @ApiModelProperty("发放时间")
    private LocalDateTime grantDateTime;

    @ApiModelProperty("发放人")
    private Long grantId;

    @ApiModelProperty("1正常订购，2库存发放")
    private Integer type;

    private Integer deleted;

    @ApiModelProperty("创建人id")
    private Long createdId;

    private LocalDateTime createdAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getBookStudentId() {
        return bookStudentId;
    }

    public void setBookStudentId(Long bookStudentId) {
        this.bookStudentId = bookStudentId;
    }
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public Integer getYearPart() {
        return yearPart;
    }

    public void setYearPart(Integer yearPart) {
        this.yearPart = yearPart;
    }
    public Integer getQuarterNum() {
        return quarterNum;
    }

    public void setQuarterNum(Integer quarterNum) {
        this.quarterNum = quarterNum;
    }
    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }
    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }
    public Long getSubjectsId() {
        return subjectsId;
    }

    public void setSubjectsId(Long subjectsId) {
        this.subjectsId = subjectsId;
    }
    public Long getClassTypeId() {
        return classTypeId;
    }

    public void setClassTypeId(Long classTypeId) {
        this.classTypeId = classTypeId;
    }
    public Integer getYearClassId() {
        return yearClassId;
    }

    public void setYearClassId(Integer yearClassId) {
        this.yearClassId = yearClassId;
    }
    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }
    public Long getGradeId() {
        return gradeId;
    }

    public void setGradeId(Long gradeId) {
        this.gradeId = gradeId;
    }
    public Integer getLessonType() {
        return lessonType;
    }

    public void setLessonType(Integer lessonType) {
        this.lessonType = lessonType;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getGrantDateTime() {
        return grantDateTime;
    }

    public void setGrantDateTime(LocalDateTime grantDateTime) {
        this.grantDateTime = grantDateTime;
    }
    public Long getGrantId() {
        return grantId;
    }

    public void setGrantId(Long grantId) {
        this.grantId = grantId;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
    public Long getCreatedId() {
        return createdId;
    }

    public void setCreatedId(Long createdId) {
        this.createdId = createdId;
    }
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "BookStudentAdjust{" +
            "id=" + id +
            ", bookStudentId=" + bookStudentId +
            ", orderId=" + orderId +
            ", yearPart=" + yearPart +
            ", quarterNum=" + quarterNum +
            ", schoolId=" + schoolId +
            ", studentId=" + studentId +
            ", subjectsId=" + subjectsId +
            ", classTypeId=" + classTypeId +
            ", yearClassId=" + yearClassId +
            ", teacherId=" + teacherId +
            ", gradeId=" + gradeId +
            ", lessonType=" + lessonType +
            ", status=" + status +
            ", grantDateTime=" + grantDateTime +
            ", grantId=" + grantId +
            ", type=" + type +
            ", deleted=" + deleted +
            ", createdId=" + createdId +
            ", createdAt=" + createdAt +
        "}";
    }
}
